package com.fh.alipay.service.impl;

import com.fh.alipay.po.Merchant;
import com.fh.alipay.mapper.MerchantMapper;
import com.fh.alipay.service.IMerchantService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fh.alipay.model.dto.MerchantDTO;
import com.fh.alipay.model.vo.MerchantVO;
import com.fh.alipay.model.query.MerchantQuery;
import java.util.List;
/**
 * @author fh
 * @date 2022-05-02
 * @description  服务实现类
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MerchantServiceImpl extends ServiceImpl<MerchantMapper, Merchant> implements IMerchantService {

	@Override
	public IPage<Merchant> getWithPage(Page page, MerchantQuery query) {
	    return baseMapper.getWithPage(page, query);
	}

	@Override
    public Merchant getOneByQuery(MerchantQuery query) {
        return baseMapper.getOneByQuery(query);
    }

    @Override
    public List<Merchant> getAllByQuery(MerchantQuery query) {
        return baseMapper.getAllByQuery(query);
    }
}
